﻿using HuaweiCloud.Dotnet.Samples.Common;
using System.ComponentModel.DataAnnotations.Schema;

namespace HuaweiCloud.Dotnet.Samples.ESports.Main.Entities
{
    /// <summary>
    /// 社区活动
    /// </summary>
    public class CommunityEvents : BaseEntity<Guid>
    {
        /// <summary>
        /// 活动描述
        /// </summary>
        public string Description { get; set; }
        /// <summary>
        /// 开始时间
        /// </summary>
        public DateTime StartTime { get; set; }
        /// <summary>
        /// 结束时间
        /// </summary>
        public DateTime EndTime { get; set; }
        /// <summary>
        /// 活动完成条件字符串
        /// </summary>
        public string ConditionString { get; set; }
        public int Points { get; set; }
        public CommunityEvents()
        {

        }
        public CommunityEvents(string description, DateTime startTime, DateTime endTime, string conditionString)
        {
            Description = description;
            StartTime = startTime;
            EndTime = endTime;
            ConditionString = conditionString;
        }
    }
}
